<template>
    <div class="statistic-panel-container">
        <h3 v-if="title">{{title}}</h3>
        <div class="statistic-panel">
            <slot/>
        </div>
    </div>

</template>

<script>
export default {
    name: "StatisticPanel",
    props: {
        title: ''
    }
}
</script>

<style scoped lang="scss">
@import "../../scss/plugin";
.statistic-panel-container{
    padding: 10px;
}
.statistic-panel{
    flex-shrink: 0;
    background-color: $bg-light;
    @include border-radius($radius-pc);
    padding: 30px;
}
h3{
    margin-left: 10px;
    color: $text-title;
    font-size: $fz-title;
    line-height: 1;
    padding-bottom: 10px;
}

// mobile
@media (max-width: $grid-separate-width-sm) {
    .statistic-panel-container{
        padding: 20px 5px;
    }
    .statistic-panel{
        padding: 15px;
    }
}


@media (prefers-color-scheme: dark) {
    .statistic-panel-container{
        h3{
            color: $dark-text-title    !important;
        }
    }
    .statistic-panel {
        background-color: $dark-bg !important;
    }
}



</style>

